package com.leco.demo.mybatis.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leco.demo.mybatis.dto.BlogDTO;
import com.leco.demo.mybatis.entity.Blog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlogDao extends BaseMapper<Blog> {
    List<Blog> queryDemo();
    List<Blog> queryDemo(@Param("title") String title);
    List<Blog> queryDemo(@Param("title") String title, @Param("authorId") int authorId);

    BlogDTO selectByIdWithAuthor(@Param("id") int id);
}
